package movieGandalf.search;

public class DescriptionParam implements SearchParam{

	private String description;
	
	public DescriptionParam(String description){
		this.description = description;
	}
	
	public String getParam() {
		return "MovieDescriptions.description LIKE CONCAT('%',?,'%')";
	}
	
	public String getJoin(){
		return "INNER JOIN MovieDescriptions ON MoviesWithData.movieID=MovieDescriptions.movieID";
	}

	public Object getValue(){
		return "" + description + "";
	}
	
	public boolean isParamOnJoin(){
		return false;
	}
}
